import com.hxh.controller.BookController;
import com.hxh.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/6/29 14:16
 */
public class ApplicationTest02 {

    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");
        BookController bookController =
                context.getBean("bookController", BookController.class);
        System.out.println(bookController.getBook());
    }
}
